import { request } from "../utils/request";


// 作物逐年分析数据获取数据
export const fetchcropAnalysByPage = (data) => {
  return request.post('/api/casy/listPage', data)
}

 //更新作物产量
export const updateCasy = (data) =>{
  return request.post('/api/casy/update',data)
}

//删除
export const deletecasy = (id) =>{
  return request.post(`/api/casy/delete/${id}`,id)
}

 //批量增加
export const uploadcasy = (data) => {
  return request.post('/api/casy/saveBatch', data)
}
